<%@page contentType="text/html; charset=UTF-8"%>
<%@taglib uri="/WEB-INF/struts-tags.tld" prefix="s"%>
<%@taglib uri="/WEB-INF/dianning.tld" prefix="dianning"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="/css/index.css" rel="stylesheet" type="text/css" />
<link href="/css/list.css" rel="stylesheet" type="text/css" />
<link href="/css/validator.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" charset="utf-8" src="/js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/jquery_last.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/formValidatorRegex.js"></script>
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="images/gif" href="animated_favicon1.gif" />
<title>点宁网[<dianning:webinfo type="area"/>分类信息]<dianning:webinfo type="area"/>免费发布信息<dianning:webinfo type="poweredby"/></title>
<meta name="Description" content="<dianning:webinfo type="area"/>分类信息网为您提供<dianning:webinfo type="area"/>分类信息，您可以免费发布和查询求职招聘,兼职,房屋出租,二手市场,生活服务,兼职,黄页等分类信息."/>
<meta name="Keywords" content="<dianning:webinfo type="area"/>免费发布信息, <dianning:webinfo type="area"/>分类信息, <dianning:webinfo type="area"/>信息港, <dianning:webinfo type="area"/>热线, <dianning:webinfo type="area"/>免费发布广告，<dianning:webinfo type="area"/>114"/>
</head>
<body>
<form name="add" id="add" method="post" action="message.action">
<s:hidden name="action" value="doprofile" />
<s:hidden name="id" />
 <table width="427" border="0" cellpadding="0" cellspacing="0" id="loginbox">
	  <tr style="height:30px">
        <td width="19" height="100" class="bfont">&nbsp;</td>
        <td width="408">您要投诉的个人主页用户:<font class="fonts_w_l"><s:property value="userInfo.username"/></font><br />
          <input id="reporttype1" type="radio" name="reporttype" value="tel" />联系电话虚假　
          <input id="reporttype2" type="radio" name="reporttype" value="info" />虚假、违法信息
		  <span id="reporttypeTip"></span>
		  </td>
      </tr>
      <tr style="height:30px">
        <td width="19" height="100" class="bfont">&nbsp;</td>
        <td width="408">
          <textarea name="reason" id="reason" cols="40" rows="5" class="txtbox1" maxLength="200"></textarea><br><span id="reasonTip"></span></td>
      </tr>
      <tr>
        <td height="30" class="bfont">&nbsp;</td>
        <td><span class="bfont">
          <input type="submit" name="Submit" value="投诉" />
        </span></td>
      </tr>
      <tr>
        <td height="40" colspan="2" align="center" class="bfont">&nbsp;</td>
      </tr>
    </table>
    </form>
<script type="text/javascript">        
$(document).ready(function(){
	$.formValidator.initConfig({formid:"add",errorfocus: true});
	$(':radio[name="reporttype"]').formValidator({tipid: "reporttypeTip",onshow:"请选择举报类别",onfocus: "请选择举报类别" }).functionValidator({ fun: function(val, elem) { return $(':radio[name="reporttype"]:checked').length > 0; }, onerror: '请选择举报类别' });
	$("#reason").formValidator({onshow:"请填写投诉理由",onfocus: "5~200个字之间" }).regexValidator({ regexp: "^[\\s\\S]*$", onerror: "请填写投诉理由" }).regexValidator({ regexp: "^[\\s\\S]{5,}$", onerror: "投诉理由不足5个字" }).regexValidator({ regexp: "^([\\s\\S]){5,200}$", onerror: "投诉理由应在5~200个字之间" });
<s:if test="#session.code=='report_create'">
	alert('举报成功');
	top.g_close_pop();
</s:if>
});
</script>
</body>
</html>
